package com.tcwlkj.uuService.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.tcwlkj.uuService.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/9/30 0030.
 */

public class SameCityClassroomActivity extends BaseActivity{
    Intent i;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_classroom);
        ButterKnife.bind(this);
        changeTitle("同城课堂");
        i=new Intent(this,UserXieYi.class);
    }
    @OnClick({R.id.jie_dan_liu_cheng_click, R.id.service_standhard_click, R.id.guan_li_gui_ding_click, R.id.cahng_jian_problem_click, R.id.jie_suan_xu_zhi_click, R.id.pei_fu_gui_ze_click, R.id.bao_xian_gui_ze_click})
    public void onViewClicked(View view) {
        switch (view.getId()) {
//          接单流程点击事件

            case R.id.jie_dan_liu_cheng_click:
                i.putExtra("XIEYI_TYPE", "15");
                startActivity(i);
                break;
//           服务标准点击事件
            case R.id.service_standhard_click:
                i.putExtra("XIEYI_TYPE", "17");
                startActivity(i);
                break;
//           管理规定点击事件
            case R.id.guan_li_gui_ding_click:
                i.putExtra("XIEYI_TYPE", "18");
                startActivity(i);
                break;
//            常见问题点击事件
            case R.id.cahng_jian_problem_click:
                i.putExtra("XIEYI_TYPE", "16");
                startActivity(i);
                break;
//            结算须知点击事件
            case R.id.jie_suan_xu_zhi_click:
                i.putExtra("XIEYI_TYPE", "19");
                startActivity(i);
                break;
//            赔付规则点击事件
            case R.id.pei_fu_gui_ze_click:
                i.putExtra("XIEYI_TYPE", "20");
                startActivity(i);
                break;
//            保险规则点击事件
            case R.id.bao_xian_gui_ze_click:
                i.putExtra("XIEYI_TYPE", "21");
                startActivity(i);
                break;
        }
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        ButterKnife.unbind(this);
    }
}
